<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkPrinter</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="Printing.html" title="打印">
<link rel="prev" href="gtk3-GtkPaperSize.html" title="GtkPaperSize">
<link rel="next" href="gtk3-GtkPrintJob.html" title="GtkPrintJob">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkPaperSize.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="Printing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkPrintJob.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkPrinter.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkPrinter.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkPrinter"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkPrinter.top_of_page"></a>GtkPrinter</span></h2>
<p>GtkPrinter — Represents a printer</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkPrinter.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter">GtkPrinter</a>;
                    <a class="link" href="gtk3-GtkPrinter.html#GtkPrintBackend" title="GtkPrintBackend">GtkPrintBackend</a>;
<a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="returnvalue">GtkPrinter</span></a> *        <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-new" title="gtk_printer_new ()">gtk_printer_new</a>                     (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrintBackend" title="GtkPrintBackend"><span class="type">GtkPrintBackend</span></a> *backend</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> virtual_</code></em>);
<a class="link" href="gtk3-GtkPrinter.html#GtkPrintBackend" title="GtkPrintBackend"><span class="returnvalue">GtkPrintBackend</span></a> *   <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-get-backend" title="gtk_printer_get_backend ()">gtk_printer_get_backend</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-get-name" title="gtk_printer_get_name ()">gtk_printer_get_name</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-get-state-message" title="gtk_printer_get_state_message ()">gtk_printer_get_state_message</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-get-description" title="gtk_printer_get_description ()">gtk_printer_get_description</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-get-location" title="gtk_printer_get_location ()">gtk_printer_get_location</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-get-icon-name" title="gtk_printer_get_icon_name ()">gtk_printer_get_icon_name</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-get-job-count" title="gtk_printer_get_job_count ()">gtk_printer_get_job_count</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-is-active" title="gtk_printer_is_active ()">gtk_printer_is_active</a>               (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-is-paused" title="gtk_printer_is_paused ()">gtk_printer_is_paused</a>               (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-is-accepting-jobs" title="gtk_printer_is_accepting_jobs ()">gtk_printer_is_accepting_jobs</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-is-virtual" title="gtk_printer_is_virtual ()">gtk_printer_is_virtual</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-is-default" title="gtk_printer_is_default ()">gtk_printer_is_default</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-accepts-ps" title="gtk_printer_accepts_ps ()">gtk_printer_accepts_ps</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-accepts-pdf" title="gtk_printer_accepts_pdf ()">gtk_printer_accepts_pdf</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-list-papers" title="gtk_printer_list_papers ()">gtk_printer_list_papers</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-compare" title="gtk_printer_compare ()">gtk_printer_compare</a>                 (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *b</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-has-details" title="gtk_printer_has_details ()">gtk_printer_has_details</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-request-details" title="gtk_printer_request_details ()">gtk_printer_request_details</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a class="link" href="gtk3-GtkPrintUnixDialog.html#GtkPrintCapabilities" title="enum GtkPrintCapabilities"><span class="returnvalue">GtkPrintCapabilities</span></a> <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-get-capabilities" title="gtk_printer_get_capabilities ()">gtk_printer_get_capabilities</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="returnvalue">GtkPageSetup</span></a> *      <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-get-default-page-size" title="gtk_printer_get_default_page_size ()">gtk_printer_get_default_page_size</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-get-hard-margins" title="gtk_printer_get_hard_margins ()">gtk_printer_get_hard_margins</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *top</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *bottom</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *left</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *right</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            (<a class="link" href="gtk3-GtkPrinter.html#GtkPrinterFunc" title="GtkPrinterFunc ()">*GtkPrinterFunc</a>)                   (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrinter.html#gtk-enumerate-printers" title="gtk_enumerate_printers ()">gtk_enumerate_printers</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinterFunc" title="GtkPrinterFunc ()"><span class="type">GtkPrinterFunc</span></a> func</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> wait</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkPrinter.description"></a><h2>Description</h2>
<p>
A <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> object represents a printer. You only need to
deal directly with printers if you use the non-portable
<a class="link" href="gtk3-GtkPrintUnixDialog.html#GtkPrintUnixDialog" title="struct GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> API.
</p>
<p>
A <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> allows to get status information about the printer,
such as its description, its location, the number of queued jobs,
etc. Most importantly, a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> object can be used to create
a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> object, which lets you print to the printer.
</p>
<p>
Printing support was added in GTK+ 2.10.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkPrinter.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkPrinter"></a><h3>struct GtkPrinter</h3>
<pre class="programlisting">struct GtkPrinter {
  GObject parent_instance;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkPrintBackend"></a><h3>GtkPrintBackend</h3>
<pre class="programlisting">typedef struct _GtkPrintBackend GtkPrintBackend;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-new"></a><h3>gtk_printer_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="returnvalue">GtkPrinter</span></a> *        gtk_printer_new                     (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrintBackend" title="GtkPrintBackend"><span class="type">GtkPrintBackend</span></a> *backend</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> virtual_</code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>the name of the printer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>backend</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrintBackend" title="GtkPrintBackend"><span class="type">GtkPrintBackend</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>virtual_</code></em> :</span></p></td>
<td>whether the printer is virtual</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-get-backend"></a><h3>gtk_printer_get_backend ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPrinter.html#GtkPrintBackend" title="GtkPrintBackend"><span class="returnvalue">GtkPrintBackend</span></a> *   gtk_printer_get_backend             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns the backend of the printer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the backend of <em class="parameter"><code>printer</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-get-name"></a><h3>gtk_printer_get_name ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_printer_get_name                (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns the name of the printer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the name of <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-get-state-message"></a><h3>gtk_printer_get_state_message ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_printer_get_state_message       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns the state message describing the current state
of the printer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the state message of <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-get-description"></a><h3>gtk_printer_get_description ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_printer_get_description         (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Gets the description of the printer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the description of <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-get-location"></a><h3>gtk_printer_get_location ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_printer_get_location            (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns a description of the location of the printer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the location of <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-get-icon-name"></a><h3>gtk_printer_get_icon_name ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_printer_get_icon_name           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Gets the name of the icon to use for the printer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the icon name for <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-get-job-count"></a><h3>gtk_printer_get_job_count ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_printer_get_job_count           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Gets the number of jobs currently queued on the printer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of jobs on <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-is-active"></a><h3>gtk_printer_is_active ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_printer_is_active               (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns whether the printer is currently active (i.e. 
accepts new jobs).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> is active</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-is-paused"></a><h3>gtk_printer_is_paused ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_printer_is_paused               (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns whether the printer is currently paused.
A paused printer still accepts jobs, but it is not
printing them.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> is paused</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-is-accepting-jobs"></a><h3>gtk_printer_is_accepting_jobs ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_printer_is_accepting_jobs       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns whether the printer is accepting jobs
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> is accepting jobs</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-is-virtual"></a><h3>gtk_printer_is_virtual ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_printer_is_virtual              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns whether the printer is virtual (i.e. does not
represent actual printer hardware, but something like 
a CUPS class).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> is virtual</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-is-default"></a><h3>gtk_printer_is_default ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_printer_is_default              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns whether the printer is the default printer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> is the default</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-accepts-ps"></a><h3>gtk_printer_accepts_ps ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_printer_accepts_ps              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns whether the printer accepts input in
PostScript format.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> accepts PostScript</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-accepts-pdf"></a><h3>gtk_printer_accepts_pdf ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_printer_accepts_pdf             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns whether the printer accepts input in
PDF format.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> accepts PDF</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-list-papers"></a><h3>gtk_printer_list_papers ()</h3>
<pre class="programlisting"><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gtk_printer_list_papers             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Lists all the paper sizes <em class="parameter"><code>printer</code></em> supports.
This will return and empty list unless the printer's details are 
available, see <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-has-details" title="gtk_printer_has_details ()"><code class="function">gtk_printer_has_details()</code></a> and <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-request-details" title="gtk_printer_request_details ()"><code class="function">gtk_printer_request_details()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly allocated list of newly allocated <a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> s. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GtkPageSetup][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-compare"></a><h3>gtk_printer_compare ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_printer_compare                 (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *b</code></em>);</pre>
<p>
Compares two printers.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>another <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 if the printer match, a negative value if <em class="parameter"><code>a</code></em> &lt; <em class="parameter"><code>b</code></em>,
or a positive value if <em class="parameter"><code>a</code></em> &gt; <em class="parameter"><code>b</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-has-details"></a><h3>gtk_printer_has_details ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_printer_has_details             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns whether the printer details are available.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> details are available</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-request-details"></a><h3>gtk_printer_request_details ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_printer_request_details         (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Requests the printer details. When the details are available,
the <span class="type">"details-acquired"</span> signal will be emitted on <em class="parameter"><code>printer</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-get-capabilities"></a><h3>gtk_printer_get_capabilities ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPrintUnixDialog.html#GtkPrintCapabilities" title="enum GtkPrintCapabilities"><span class="returnvalue">GtkPrintCapabilities</span></a> gtk_printer_get_capabilities       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns the printer's capabilities.
</p>
<p>
This is useful when you're using <a class="link" href="gtk3-GtkPrintUnixDialog.html#GtkPrintUnixDialog" title="struct GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>'s manual-capabilities 
setting and need to know which settings the printer can handle and which 
you must handle yourself.
</p>
<p>
This will return 0 unless the printer's details are available, see
<a class="link" href="gtk3-GtkPrinter.html#gtk-printer-has-details" title="gtk_printer_has_details ()"><code class="function">gtk_printer_has_details()</code></a> and <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-request-details" title="gtk_printer_request_details ()"><code class="function">gtk_printer_request_details()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the printer's capabilities</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-get-default-page-size"></a><h3>gtk_printer_get_default_page_size ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="returnvalue">GtkPageSetup</span></a> *      gtk_printer_get_default_page_size   (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>);</pre>
<p>
Returns default page size of <em class="parameter"><code>printer</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly allocated <a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> with default page size of the printer.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-printer-get-hard-margins"></a><h3>gtk_printer_get_hard_margins ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_printer_get_hard_margins        (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *top</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *bottom</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *left</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *right</code></em>);</pre>
<p>
Retrieve the hard margins of <em class="parameter"><code>printer</code></em>, i.e. the margins that define
the area at the borders of the paper that the printer cannot print to.
</p>
<p>
Note: This will not succeed unless the printer's details are available,
see <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-has-details" title="gtk_printer_has_details ()"><code class="function">gtk_printer_has_details()</code></a> and <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-request-details" title="gtk_printer_request_details ()"><code class="function">gtk_printer_request_details()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
<td>a location to store the top margin in. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td>
<td>a location to store the bottom margin in. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>left</code></em> :</span></p></td>
<td>a location to store the left margin in. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>right</code></em> :</span></p></td>
<td>a location to store the right margin in. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> iff the hard margins were retrieved</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkPrinterFunc"></a><h3>GtkPrinterFunc ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            (*GtkPrinterFunc)                   (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
<p>
The type of function passed to <a class="link" href="gtk3-GtkPrinter.html#gtk-enumerate-printers" title="gtk_enumerate_printers ()"><code class="function">gtk_enumerate_printers()</code></a>.
Note that you need to ref <em class="parameter"><code>printer</code></em>, if you want to keep
a reference to it after the function has returned.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>user data passed to <a class="link" href="gtk3-GtkPrinter.html#gtk-enumerate-printers" title="gtk_enumerate_printers ()"><code class="function">gtk_enumerate_printers()</code></a>. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to stop the enumeration, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to continue</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-enumerate-printers"></a><h3>gtk_enumerate_printers ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_enumerate_printers              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinterFunc" title="GtkPrinterFunc ()"><span class="type">GtkPrinterFunc</span></a> func</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> wait</code></em>);</pre>
<p>
Calls a function for all <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>s. 
If <em class="parameter"><code>func</code></em> returns <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the enumeration is stopped.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
<td>a function to call for each printer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>user data to pass to <em class="parameter"><code>func</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
<td>function to call if <em class="parameter"><code>data</code></em> is no longer needed</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>wait</code></em> :</span></p></td>
<td>if <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, wait in a recursive mainloop until
all printers are enumerated; otherwise return early</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>